package com.greyu.ysj.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class CbtCoininfo implements Serializable {
    /**
     * 币ID
     */
    private Integer coinId;

    /**
     * 币的英文名称
     */
    private String coinEnglishName;

    /**
     * 币的简称
     */
    private String coinSymbol;

    /**
     * 币头像url
     */
    private String coinUrl;

    /**
     * 币的中文名称
     */
    private String coinChineseName;

    /**
     * 代币合约地址/propertyID
     */
    private String coinContractAddress;

    /**
     * 代币真实小数点后位数
     */
    private Integer coinDecimal;

    /**
     * 代币显示小数点后位数
     */
    private Integer coinDecimalUsed;

    /**
     * 币种行情名称
     */
    private String coinQuotesName;

    /**
     * 币种在哪条链上
     */
    private String coinLocation;

    /**
     * 币种人民币价格
     */
    private Double coinPriceRmb;

    /**
     * 币种价格和USDT比值
     */
    private String coinPriceUsdt;

    /**
     * 币种24小时涨跌
     */
    private String coinFluctuation;

    /**
     * 币种价格更新时间
     */
    private Date coinPriceUpdatetime;

    /**
     * 币种涨跌更新时间
     */
    private Date coinFluctuationUpdatetime;

    /**
     * 币种价格请求URL
     */
    private String coinPriceRequestpath;

    /**
     * 币种价格接口返回的json格式
     */
    private String coinPriceJsonStructure;

    /**
     * 币种价格查询请求方式
     */
    private String coinPriceRequestmethod;

    /**
     * 币种价格查询body
     */
    private String coinPriceRequestbody;

    /**
     * 币种24小时涨跌查询返回的json结构
     */
    private String coinFluctuationJsonStructure;

    /**
     * 币种24小时涨跌查询URL
     */
    private String coinFluctuationRequestpath;

    /**
     * 币种24小时涨跌查询请求方式
     */
    private String coinFluctuationRequestmethod;

    /**
     * 是否显示，1-显示，0-不显示
     */
    private Integer isdisplay;

    /**
     * 币种24小时涨跌查询请求body
     */
    private String coinFluctuationRequestbody;

    /**
     * 排序，越小，越前
     */
    private Integer coinSort;
    
    
    private CbtBallot cbtBallot;
    
    private CbtRecharge cbtRecharge;
    
    private CbtInvest cbtInvest;
    
    
    
    public CbtBallot getCbtBallot() {
		return cbtBallot;
	}

	public void setCbtBallot(CbtBallot cbtBallot) {
		this.cbtBallot = cbtBallot;
	}

	public CbtRecharge getCbtRecharge() {
		return cbtRecharge;
	}

	public void setCbtRecharge(CbtRecharge cbtRecharge) {
		this.cbtRecharge = cbtRecharge;
	}

	public CbtInvest getCbtInvest() {
		return cbtInvest;
	}

	public void setCbtInvest(CbtInvest cbtInvest) {
		this.cbtInvest = cbtInvest;
	}

    
    

    private static final long serialVersionUID = 1L;

    public Integer getCoinId() {
        return coinId;
    }

    public void setCoinId(Integer coinId) {
        this.coinId = coinId;
    }

    public String getCoinEnglishName() {
        return coinEnglishName;
    }

    public void setCoinEnglishName(String coinEnglishName) {
        this.coinEnglishName = coinEnglishName;
    }

    public String getCoinSymbol() {
        return coinSymbol;
    }

    public void setCoinSymbol(String coinSymbol) {
        this.coinSymbol = coinSymbol;
    }

    public String getCoinUrl() {
        return coinUrl;
    }

    public void setCoinUrl(String coinUrl) {
        this.coinUrl = coinUrl;
    }

    public String getCoinChineseName() {
        return coinChineseName;
    }

    public void setCoinChineseName(String coinChineseName) {
        this.coinChineseName = coinChineseName;
    }

    public String getCoinContractAddress() {
        return coinContractAddress;
    }

    public void setCoinContractAddress(String coinContractAddress) {
        this.coinContractAddress = coinContractAddress;
    }

    public Integer getCoinDecimal() {
        return coinDecimal;
    }

    public void setCoinDecimal(Integer coinDecimal) {
        this.coinDecimal = coinDecimal;
    }

    public Integer getCoinDecimalUsed() {
        return coinDecimalUsed;
    }

    public void setCoinDecimalUsed(Integer coinDecimalUsed) {
        this.coinDecimalUsed = coinDecimalUsed;
    }

    public String getCoinQuotesName() {
        return coinQuotesName;
    }

    public void setCoinQuotesName(String coinQuotesName) {
        this.coinQuotesName = coinQuotesName;
    }

    public String getCoinLocation() {
        return coinLocation;
    }

    public void setCoinLocation(String coinLocation) {
        this.coinLocation = coinLocation;
    }

    public Double getCoinPriceRmb() {
        return coinPriceRmb;
    }

    public void setCoinPriceRmb(Double coinPriceRmb) {
        this.coinPriceRmb = coinPriceRmb;
    }

    public String getCoinPriceUsdt() {
        return coinPriceUsdt;
    }

    public void setCoinPriceUsdt(String coinPriceUsdt) {
        this.coinPriceUsdt = coinPriceUsdt;
    }

    public String getCoinFluctuation() {
        return coinFluctuation;
    }

    public void setCoinFluctuation(String coinFluctuation) {
        this.coinFluctuation = coinFluctuation;
    }

    public Date getCoinPriceUpdatetime() {
        return coinPriceUpdatetime;
    }

    public void setCoinPriceUpdatetime(Date coinPriceUpdatetime) {
        this.coinPriceUpdatetime = coinPriceUpdatetime;
    }

    public Date getCoinFluctuationUpdatetime() {
        return coinFluctuationUpdatetime;
    }

    public void setCoinFluctuationUpdatetime(Date coinFluctuationUpdatetime) {
        this.coinFluctuationUpdatetime = coinFluctuationUpdatetime;
    }

    public String getCoinPriceRequestpath() {
        return coinPriceRequestpath;
    }

    public void setCoinPriceRequestpath(String coinPriceRequestpath) {
        this.coinPriceRequestpath = coinPriceRequestpath;
    }

    public String getCoinPriceJsonStructure() {
        return coinPriceJsonStructure;
    }

    public void setCoinPriceJsonStructure(String coinPriceJsonStructure) {
        this.coinPriceJsonStructure = coinPriceJsonStructure;
    }

    public String getCoinPriceRequestmethod() {
        return coinPriceRequestmethod;
    }

    public void setCoinPriceRequestmethod(String coinPriceRequestmethod) {
        this.coinPriceRequestmethod = coinPriceRequestmethod;
    }

    public String getCoinPriceRequestbody() {
        return coinPriceRequestbody;
    }

    public void setCoinPriceRequestbody(String coinPriceRequestbody) {
        this.coinPriceRequestbody = coinPriceRequestbody;
    }

    public String getCoinFluctuationJsonStructure() {
        return coinFluctuationJsonStructure;
    }

    public void setCoinFluctuationJsonStructure(String coinFluctuationJsonStructure) {
        this.coinFluctuationJsonStructure = coinFluctuationJsonStructure;
    }

    public String getCoinFluctuationRequestpath() {
        return coinFluctuationRequestpath;
    }

    public void setCoinFluctuationRequestpath(String coinFluctuationRequestpath) {
        this.coinFluctuationRequestpath = coinFluctuationRequestpath;
    }

    public String getCoinFluctuationRequestmethod() {
        return coinFluctuationRequestmethod;
    }

    public void setCoinFluctuationRequestmethod(String coinFluctuationRequestmethod) {
        this.coinFluctuationRequestmethod = coinFluctuationRequestmethod;
    }

    public Integer getIsdisplay() {
        return isdisplay;
    }

    public void setIsdisplay(Integer isdisplay) {
        this.isdisplay = isdisplay;
    }

    public String getCoinFluctuationRequestbody() {
        return coinFluctuationRequestbody;
    }

    public void setCoinFluctuationRequestbody(String coinFluctuationRequestbody) {
        this.coinFluctuationRequestbody = coinFluctuationRequestbody;
    }

    public Integer getCoinSort() {
        return coinSort;
    }

    public void setCoinSort(Integer coinSort) {
        this.coinSort = coinSort;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CbtCoininfo other = (CbtCoininfo) that;
        return (this.getCoinId() == null ? other.getCoinId() == null : this.getCoinId().equals(other.getCoinId()))
            && (this.getCoinEnglishName() == null ? other.getCoinEnglishName() == null : this.getCoinEnglishName().equals(other.getCoinEnglishName()))
            && (this.getCoinSymbol() == null ? other.getCoinSymbol() == null : this.getCoinSymbol().equals(other.getCoinSymbol()))
            && (this.getCoinUrl() == null ? other.getCoinUrl() == null : this.getCoinUrl().equals(other.getCoinUrl()))
            && (this.getCoinChineseName() == null ? other.getCoinChineseName() == null : this.getCoinChineseName().equals(other.getCoinChineseName()))
            && (this.getCoinContractAddress() == null ? other.getCoinContractAddress() == null : this.getCoinContractAddress().equals(other.getCoinContractAddress()))
            && (this.getCoinDecimal() == null ? other.getCoinDecimal() == null : this.getCoinDecimal().equals(other.getCoinDecimal()))
            && (this.getCoinDecimalUsed() == null ? other.getCoinDecimalUsed() == null : this.getCoinDecimalUsed().equals(other.getCoinDecimalUsed()))
            && (this.getCoinQuotesName() == null ? other.getCoinQuotesName() == null : this.getCoinQuotesName().equals(other.getCoinQuotesName()))
            && (this.getCoinLocation() == null ? other.getCoinLocation() == null : this.getCoinLocation().equals(other.getCoinLocation()))
            && (this.getCoinPriceRmb() == null ? other.getCoinPriceRmb() == null : this.getCoinPriceRmb().equals(other.getCoinPriceRmb()))
            && (this.getCoinPriceUsdt() == null ? other.getCoinPriceUsdt() == null : this.getCoinPriceUsdt().equals(other.getCoinPriceUsdt()))
            && (this.getCoinFluctuation() == null ? other.getCoinFluctuation() == null : this.getCoinFluctuation().equals(other.getCoinFluctuation()))
            && (this.getCoinPriceUpdatetime() == null ? other.getCoinPriceUpdatetime() == null : this.getCoinPriceUpdatetime().equals(other.getCoinPriceUpdatetime()))
            && (this.getCoinFluctuationUpdatetime() == null ? other.getCoinFluctuationUpdatetime() == null : this.getCoinFluctuationUpdatetime().equals(other.getCoinFluctuationUpdatetime()))
            && (this.getCoinPriceRequestpath() == null ? other.getCoinPriceRequestpath() == null : this.getCoinPriceRequestpath().equals(other.getCoinPriceRequestpath()))
            && (this.getCoinPriceJsonStructure() == null ? other.getCoinPriceJsonStructure() == null : this.getCoinPriceJsonStructure().equals(other.getCoinPriceJsonStructure()))
            && (this.getCoinPriceRequestmethod() == null ? other.getCoinPriceRequestmethod() == null : this.getCoinPriceRequestmethod().equals(other.getCoinPriceRequestmethod()))
            && (this.getCoinPriceRequestbody() == null ? other.getCoinPriceRequestbody() == null : this.getCoinPriceRequestbody().equals(other.getCoinPriceRequestbody()))
            && (this.getCoinFluctuationJsonStructure() == null ? other.getCoinFluctuationJsonStructure() == null : this.getCoinFluctuationJsonStructure().equals(other.getCoinFluctuationJsonStructure()))
            && (this.getCoinFluctuationRequestpath() == null ? other.getCoinFluctuationRequestpath() == null : this.getCoinFluctuationRequestpath().equals(other.getCoinFluctuationRequestpath()))
            && (this.getCoinFluctuationRequestmethod() == null ? other.getCoinFluctuationRequestmethod() == null : this.getCoinFluctuationRequestmethod().equals(other.getCoinFluctuationRequestmethod()))
            && (this.getIsdisplay() == null ? other.getIsdisplay() == null : this.getIsdisplay().equals(other.getIsdisplay()))
            && (this.getCoinFluctuationRequestbody() == null ? other.getCoinFluctuationRequestbody() == null : this.getCoinFluctuationRequestbody().equals(other.getCoinFluctuationRequestbody()))
            && (this.getCoinSort() == null ? other.getCoinSort() == null : this.getCoinSort().equals(other.getCoinSort()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCoinId() == null) ? 0 : getCoinId().hashCode());
        result = prime * result + ((getCoinEnglishName() == null) ? 0 : getCoinEnglishName().hashCode());
        result = prime * result + ((getCoinSymbol() == null) ? 0 : getCoinSymbol().hashCode());
        result = prime * result + ((getCoinUrl() == null) ? 0 : getCoinUrl().hashCode());
        result = prime * result + ((getCoinChineseName() == null) ? 0 : getCoinChineseName().hashCode());
        result = prime * result + ((getCoinContractAddress() == null) ? 0 : getCoinContractAddress().hashCode());
        result = prime * result + ((getCoinDecimal() == null) ? 0 : getCoinDecimal().hashCode());
        result = prime * result + ((getCoinDecimalUsed() == null) ? 0 : getCoinDecimalUsed().hashCode());
        result = prime * result + ((getCoinQuotesName() == null) ? 0 : getCoinQuotesName().hashCode());
        result = prime * result + ((getCoinLocation() == null) ? 0 : getCoinLocation().hashCode());
        result = prime * result + ((getCoinPriceRmb() == null) ? 0 : getCoinPriceRmb().hashCode());
        result = prime * result + ((getCoinPriceUsdt() == null) ? 0 : getCoinPriceUsdt().hashCode());
        result = prime * result + ((getCoinFluctuation() == null) ? 0 : getCoinFluctuation().hashCode());
        result = prime * result + ((getCoinPriceUpdatetime() == null) ? 0 : getCoinPriceUpdatetime().hashCode());
        result = prime * result + ((getCoinFluctuationUpdatetime() == null) ? 0 : getCoinFluctuationUpdatetime().hashCode());
        result = prime * result + ((getCoinPriceRequestpath() == null) ? 0 : getCoinPriceRequestpath().hashCode());
        result = prime * result + ((getCoinPriceJsonStructure() == null) ? 0 : getCoinPriceJsonStructure().hashCode());
        result = prime * result + ((getCoinPriceRequestmethod() == null) ? 0 : getCoinPriceRequestmethod().hashCode());
        result = prime * result + ((getCoinPriceRequestbody() == null) ? 0 : getCoinPriceRequestbody().hashCode());
        result = prime * result + ((getCoinFluctuationJsonStructure() == null) ? 0 : getCoinFluctuationJsonStructure().hashCode());
        result = prime * result + ((getCoinFluctuationRequestpath() == null) ? 0 : getCoinFluctuationRequestpath().hashCode());
        result = prime * result + ((getCoinFluctuationRequestmethod() == null) ? 0 : getCoinFluctuationRequestmethod().hashCode());
        result = prime * result + ((getIsdisplay() == null) ? 0 : getIsdisplay().hashCode());
        result = prime * result + ((getCoinFluctuationRequestbody() == null) ? 0 : getCoinFluctuationRequestbody().hashCode());
        result = prime * result + ((getCoinSort() == null) ? 0 : getCoinSort().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", coinId=").append(coinId);
        sb.append(", coinEnglishName=").append(coinEnglishName);
        sb.append(", coinSymbol=").append(coinSymbol);
        sb.append(", coinUrl=").append(coinUrl);
        sb.append(", coinChineseName=").append(coinChineseName);
        sb.append(", coinContractAddress=").append(coinContractAddress);
        sb.append(", coinDecimal=").append(coinDecimal);
        sb.append(", coinDecimalUsed=").append(coinDecimalUsed);
        sb.append(", coinQuotesName=").append(coinQuotesName);
        sb.append(", coinLocation=").append(coinLocation);
        sb.append(", coinPriceRmb=").append(coinPriceRmb);
        sb.append(", coinPriceUsdt=").append(coinPriceUsdt);
        sb.append(", coinFluctuation=").append(coinFluctuation);
        sb.append(", coinPriceUpdatetime=").append(coinPriceUpdatetime);
        sb.append(", coinFluctuationUpdatetime=").append(coinFluctuationUpdatetime);
        sb.append(", coinPriceRequestpath=").append(coinPriceRequestpath);
        sb.append(", coinPriceJsonStructure=").append(coinPriceJsonStructure);
        sb.append(", coinPriceRequestmethod=").append(coinPriceRequestmethod);
        sb.append(", coinPriceRequestbody=").append(coinPriceRequestbody);
        sb.append(", coinFluctuationJsonStructure=").append(coinFluctuationJsonStructure);
        sb.append(", coinFluctuationRequestpath=").append(coinFluctuationRequestpath);
        sb.append(", coinFluctuationRequestmethod=").append(coinFluctuationRequestmethod);
        sb.append(", isdisplay=").append(isdisplay);
        sb.append(", coinFluctuationRequestbody=").append(coinFluctuationRequestbody);
        sb.append(", coinSort=").append(coinSort);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}